class CreateWikis < ActiveRecord::Migration
  def self.up
    create_table :wikis do |t|
      t.string :title
      t.string :subdomain

      t.timestamps
    end
    add_index :wikis, :subdomain, :unique => true
  end

  def self.down
    remove_index :wikis, :subdomain
    drop_table :wikis
  end
end
